package com.jasonjan.jiance.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by jasonjan on 2018/3/13.
 */

public class HomeNews {

    /**
     * code : 200
     * msg : success
     * debugMsg :
     * result : {"data":[{"createTime":"2017-09-13T20:10:00.862426+08:00","id":"100000270","isFavorite":"0","isZan":"0","link":"https://debug.guangdamiao.com/data/guidance","readCount":"0","title":"2N>f2<bH@8","type":"","zan":"0"},{"createTime":"2017-09-13T20:09:18.084575+08:00","id":"100000269","isFavorite":"0","isZan":"0","link":"https://debug.guangdamiao.com/data/guidance","readCount":"0","title":"R`E3AhE[?D","type":"","zan":"1"},{"createTime":"2017-09-13T20:09:17.074762+08:00","id":"100000268","isFavorite":"0","isZan":"0","link":"https://debug.guangdamiao.com/data/guidance","readCount":"0","title":"@E\\><B>hXn","type":"","zan":"1"},{"createTime":"2017-09-13T20:09:16.939692+08:00","id":"100000267","isFavorite":"0","isZan":"0","link":"https://debug.guangdamiao.com/data/guidance","readCount":"0","title":"2N>f2<bH@8","type":"","zan":"0"},{"createTime":"2017-09-13T18:42:35.25074+08:00","id":"100000266","isFavorite":"0","isZan":"0","link":"https://debug.guangdamiao.com/data/guidance","readCount":"0","title":"href","type":"","zan":"0"},{"createTime":"2017-09-12T22:42:44.379558+08:00","id":"100000265","isFavorite":"0","isZan":"0","link":"https://debug.guangdamiao.com/data/guidance","readCount":"1","title":"AFL;YJ=Q@h","type":"","zan":"0"},{"createTime":"2017-09-12T22:42:43.910099+08:00","id":"100000264","isFavorite":"0","isZan":"0","link":"https://debug.guangdamiao.com/data/guidance","readCount":"1","title":"JUE7RWm8ob","type":"","zan":"0"},{"createTime":"2017-09-12T22:42:43.816623+08:00","id":"100000263","isFavorite":"0","isZan":"0","link":"https://debug.guangdamiao.com/data/guidance","readCount":"0","title":"2N>f2<bH@8","type":"","zan":"0"},{"createTime":"2017-09-11T21:55:07.569008+08:00","id":"100000262","isFavorite":"0","isZan":"0","link":"https://debug.guangdamiao.com/data/guidance","readCount":"1","title":"AFL;YJ=Q@h","type":"","zan":"0"},{"createTime":"2017-09-11T21:55:07.100734+08:00","id":"100000261","isFavorite":"0","isZan":"0","link":"https://debug.guangdamiao.com/data/guidance","readCount":"1","title":"JUE7RWm8ob","type":"","zan":"0"}],"pageCount":10,"pageIndex":1,"pageSize":10}
     */

    private String code;
    private String msg;
    private String debugMsg;
    private ResultBean result;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getDebugMsg() {
        return debugMsg;
    }

    public void setDebugMsg(String debugMsg) {
        this.debugMsg = debugMsg;
    }

    public ResultBean getResult() {
        return result;
    }

    public void setResult(ResultBean result) {
        this.result = result;
    }

    @Override
    public String toString() {
        return "HomeNews{" +
                "code='" + code + '\'' +
                ", msg='" + msg + '\'' +
                ", debugMsg='" + debugMsg + '\'' +
                ", result=" + result +
                '}';
    }

    public static class ResultBean {
        /**
         * data : [{"createTime":"2017-09-13T20:10:00.862426+08:00","id":"100000270","isFavorite":"0","isZan":"0","link":"https://debug.guangdamiao.com/data/guidance","readCount":"0","title":"2N>f2<bH@8","type":"","zan":"0"},{"createTime":"2017-09-13T20:09:18.084575+08:00","id":"100000269","isFavorite":"0","isZan":"0","link":"https://debug.guangdamiao.com/data/guidance","readCount":"0","title":"R`E3AhE[?D","type":"","zan":"1"},{"createTime":"2017-09-13T20:09:17.074762+08:00","id":"100000268","isFavorite":"0","isZan":"0","link":"https://debug.guangdamiao.com/data/guidance","readCount":"0","title":"@E\\><B>hXn","type":"","zan":"1"},{"createTime":"2017-09-13T20:09:16.939692+08:00","id":"100000267","isFavorite":"0","isZan":"0","link":"https://debug.guangdamiao.com/data/guidance","readCount":"0","title":"2N>f2<bH@8","type":"","zan":"0"},{"createTime":"2017-09-13T18:42:35.25074+08:00","id":"100000266","isFavorite":"0","isZan":"0","link":"https://debug.guangdamiao.com/data/guidance","readCount":"0","title":"href","type":"","zan":"0"},{"createTime":"2017-09-12T22:42:44.379558+08:00","id":"100000265","isFavorite":"0","isZan":"0","link":"https://debug.guangdamiao.com/data/guidance","readCount":"1","title":"AFL;YJ=Q@h","type":"","zan":"0"},{"createTime":"2017-09-12T22:42:43.910099+08:00","id":"100000264","isFavorite":"0","isZan":"0","link":"https://debug.guangdamiao.com/data/guidance","readCount":"1","title":"JUE7RWm8ob","type":"","zan":"0"},{"createTime":"2017-09-12T22:42:43.816623+08:00","id":"100000263","isFavorite":"0","isZan":"0","link":"https://debug.guangdamiao.com/data/guidance","readCount":"0","title":"2N>f2<bH@8","type":"","zan":"0"},{"createTime":"2017-09-11T21:55:07.569008+08:00","id":"100000262","isFavorite":"0","isZan":"0","link":"https://debug.guangdamiao.com/data/guidance","readCount":"1","title":"AFL;YJ=Q@h","type":"","zan":"0"},{"createTime":"2017-09-11T21:55:07.100734+08:00","id":"100000261","isFavorite":"0","isZan":"0","link":"https://debug.guangdamiao.com/data/guidance","readCount":"1","title":"JUE7RWm8ob","type":"","zan":"0"}]
         * pageCount : 10
         * pageIndex : 1
         * pageSize : 10
         */

        private int pageCount;
        private int pageIndex;
        private int pageSize;
        private List<DataBean> data;

        public int getPageCount() {
            return pageCount;
        }

        public void setPageCount(int pageCount) {
            this.pageCount = pageCount;
        }

        public int getPageIndex() {
            return pageIndex;
        }

        public void setPageIndex(int pageIndex) {
            this.pageIndex = pageIndex;
        }

        public int getPageSize() {
            return pageSize;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

        public List<DataBean> getData() {
            return data;
        }

        public void setData(List<DataBean> data) {
            this.data = data;
        }

        public static class DataBean implements Parcelable {
            /**
             * createTime : 2017-09-13T20:10:00.862426+08:00
             * id : 100000270
             * isFavorite : 0
             * isZan : 0
             * link : https://debug.guangdamiao.com/data/guidance
             * readCount : 0
             * title : 2N>f2<bH@8
             * type :
             * zan : 0
             */

            private String createTime;
            private String id;
            private String isFavorite;
            private String isZan;
            private String link;
            private String readCount;
            private String title;
            private String type;
            private String zan;

            public String getCreateTime() {
                return createTime;
            }

            public void setCreateTime(String createTime) {
                this.createTime = createTime;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getIsFavorite() {
                return isFavorite;
            }

            public void setIsFavorite(String isFavorite) {
                this.isFavorite = isFavorite;
            }

            public String getIsZan() {
                return isZan;
            }

            public void setIsZan(String isZan) {
                this.isZan = isZan;
            }

            public String getLink() {
                return link;
            }

            public void setLink(String link) {
                this.link = link;
            }

            public String getReadCount() {
                return readCount;
            }

            public void setReadCount(String readCount) {
                this.readCount = readCount;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public String getZan() {
                return zan;
            }

            public void setZan(String zan) {
                this.zan = zan;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(this.createTime);
                dest.writeString(this.id);
                dest.writeString(this.isFavorite);
                dest.writeString(this.isZan);
                dest.writeString(this.link);
                dest.writeString(this.readCount);
                dest.writeString(this.title);
                dest.writeString(this.type);
                dest.writeString(this.zan);
            }

            public DataBean() {
            }

            protected DataBean(Parcel in) {
                this.createTime = in.readString();
                this.id = in.readString();
                this.isFavorite = in.readString();
                this.isZan = in.readString();
                this.link = in.readString();
                this.readCount = in.readString();
                this.title = in.readString();
                this.type = in.readString();
                this.zan = in.readString();
            }

            public static final Parcelable.Creator<DataBean> CREATOR = new Parcelable.Creator<DataBean>() {
                @Override
                public DataBean createFromParcel(Parcel source) {
                    return new DataBean(source);
                }

                @Override
                public DataBean[] newArray(int size) {
                    return new DataBean[size];
                }
            };

            @Override
            public String toString() {
                return "DataBean{" +
                        "createTime='" + createTime + '\'' +
                        ", id='" + id + '\'' +
                        ", isFavorite='" + isFavorite + '\'' +
                        ", isZan='" + isZan + '\'' +
                        ", link='" + link + '\'' +
                        ", readCount='" + readCount + '\'' +
                        ", title='" + title + '\'' +
                        ", type='" + type + '\'' +
                        ", zan='" + zan + '\'' +
                        '}';
            }
        }
    }
}
